package de.se.ludoapp.response;

import java.util.ArrayList;

public class GameFieldResponse extends ReturncodeResponse {

	/**
	 * True: Updates available. False: No updates, aks again later
	 */
	private boolean updates;

	/**
	 * Contains the sessionId of the user that is up next
	 */
	private int upNext;

	private int gameId;

	private ArrayList<Integer> gameField;

	private boolean artificialOpponentPlayer;

	private String nameYellowPlayer;
	private String nameRedPlayer;
	private String nameGreenPlayer;
	private String nameBluePlayer;

	public GameFieldResponse(int returnCode, String msg, boolean updates,
			int upNext, int gameId, ArrayList<Integer> gameField,
			boolean artificialOpponentPlayer, String nameYellowPlayer,
			String nameRedPlayer, String nameGreenPlayer, String nameBluePlayer) {
		super(returnCode, msg);
		this.updates = updates;
		this.upNext = upNext;
		this.gameId = gameId;
		this.gameField = gameField;
		this.setArtificialOpponentPlayer(artificialOpponentPlayer);
		this.nameYellowPlayer = nameYellowPlayer;
		this.nameRedPlayer = nameRedPlayer;
		this.nameGreenPlayer = nameGreenPlayer;
		this.nameBluePlayer = nameBluePlayer;
	}

	public boolean getUpdates() {
		return updates;
	}

	public void setUpdates(boolean updates) {
		this.updates = updates;
	}

	public int getUpNext() {
		return upNext;
	}

	public void setUpNext(int upNext) {
		this.upNext = upNext;
	}

	public int getGameId() {
		return gameId;
	}

	public void setGameId(int gameId) {
		this.gameId = gameId;
	}

	public ArrayList<Integer> getGameField() {
		return gameField;
	}

	public void setGameField(ArrayList<Integer> gameField) {
		this.gameField = gameField;
	}

	public boolean hasArtificialOpponentPlayer() {
		return artificialOpponentPlayer;
	}

	public void setArtificialOpponentPlayer(boolean artificialOpponentPlayer) {
		this.artificialOpponentPlayer = artificialOpponentPlayer;
	}

	public String getNameYellowPlayer() {
		return nameYellowPlayer;
	}

	public void setNameYellowPlayer(String nameYellowPlayer) {
		this.nameYellowPlayer = nameYellowPlayer;
	}

	public String getNameRedPlayer() {
		return nameRedPlayer;
	}

	public void setNameRedPlayer(String nameRedPlayer) {
		this.nameRedPlayer = nameRedPlayer;
	}

	public String getNameGreenPlayer() {
		return nameGreenPlayer;
	}

	public void setNameGreenPlayer(String nameGreenPlayer) {
		this.nameGreenPlayer = nameGreenPlayer;
	}

	public String getNameBluePlayer() {
		return nameBluePlayer;
	}

	public void setNameBluePlayer(String nameBluePlayer) {
		this.nameBluePlayer = nameBluePlayer;
	}

}
